// import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
// 导入记忆登录的插件
import {createPersistedState} from 'pinia-plugin-persistedstate'
// ========
import App from './App.vue'
import router from './router'
// 懒加载
import { lazyPlugin } from '@/directives'

const app = createApp(App)
const pinia = createPinia()
// 注册持久化插件（记忆登录）
pinia.use(
  createPersistedState({
    auto: true,
  })
)

app.use(pinia)
app.use(createPinia())
app.use(router)
app.mount('#app')
app.use(lazyPlugin)






